{% extends "base.html" %}
{% load wiki_extras %}

{% block content %}
<script language="JavaScript" src="{{ MEDIA_URL }}js/jquery.min.js"></script>
<script language="JavaScript" src="{{ MEDIA_URL }}js/render.js"></script>
<table width="100%">
<col width="100%"><col width="0*">
<tr>
<td><div id="page_body"></div><textarea id="page_text" style="display:none">{{ page.text }}</textarea></td><td style="text-align:right;vertical-align:top"><a href="{% url djambe.wiki.views.edit_form page.id %}">Edit</a><br/><a href="{% url djambe.wiki.views.print_view page.id %}" target="_blank">Print</a><br/><a href="{% url djambe.wiki.views.version_list page.id %}">History</a></td>
</tr>
<tr>
<td colspan="2" class="small"><br/>Tags: {{ page.tags.all|tag_join }}</td>
</tr>
<tr>
<td colspan="2" class="small">Author: {{ page.author }}</td>
</tr>
<tr>
<td colspan="2" class="small">Last Updated: {{ page.updated|date:"Y-m-d H:i" }}</td>
</tr>
<tr>
<td colspan="2" class="small">Permalink: <a href="{% url djambe.wiki.views.view page.id %}">{% if request.is_secure %}https://{{ request.META.HTTP_HOST }}{% ifnotequal request.META.SERVER_PORT '443' %}:{{ request.META.SERVER_PORT }}{% endifnotequal %}{% else %}http://{{ request.META.HTTP_HOST }}{% ifnotequal request.META.SERVER_PORT '80' %}:{{ request.META.SERVER_PORT }}{% endifnotequal %}{% endif %}{% url djambe.wiki.views.view page.id %}</a></td>
</tr>
<tr>
<td colspan="2" class="small">Permalink: <a href="{% url djambe.wiki.views.front_page %}view/{% url_encode page.title %}/">{% if request.is_secure %}https://{{ request.META.HTTP_HOST }}{% ifnotequal request.META.SERVER_PORT '443' %}:{{ request.META.SERVER_PORT }}{% endifnotequal %}{% else %}http://{{ request.META.HTTP_HOST }}{% ifnotequal request.META.SERVER_PORT '80' %}:{{ request.META.SERVER_PORT }}{% endifnotequal %}{% endif %}{% url djambe.wiki.views.front_page %}view/{{ page.title }}/</a></td>
</tr>
</table>
{% endblock %}
